<!--
*Author：COCO
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/custom/custom/FJDetail.js此处编写
 --> 
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/custom/custom/FJDetail.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'id',
                footer: "Foots",
                cnName: '分拣明细',
                name: 'custom/FJDetail',
                url: "/FJDetail/",
                sortName: "id"
            });
            const editFormFields = ref({'date':'','passedcount':'','failedcount':'','size':'','sizeCode':'','sizeDesc':''});
            const editFormOptions = ref([[{field:'date',title:'日期',"type":"datetime"},
            
            
            {field:'passedcount',title:'合格数量'}]
            ,[{field:'failedcount',title:'不合格数量'},{field:'size',title:'规格'}]
        ,[{field:'sizeCode',title:'规格Code'},{field:'sizeDesc',title:'规格释意'}]
    
          
    
    
    ]);
            const searchFormFields = ref({'date':'','passedcount':'','failedcount':''});
            const searchFormOptions = ref([[{field:'date',title:'日期'}
            ,{field:'passedcount',title:'合格数量'}]]);
            const columns = ref([{field:'id',title:'id',type:'string',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'date',title:'日期',type:'datetime',width:110,align:'left',sort:true},
                       {field:'passedcount',title:'合格数量',type:'decimal',width:110,align:'left'},
                       {field:'failedcount',title:'不合格数量',type:'decimal',width:110,align:'left'},
                       {field:'size',title:'规格',type:'string',width:110,align:'left'},
                       {field:'sizeCode',title:'规格Code',type:'string',width:110,align:'left'},
                       {field:'sizeDesc',title:'规格释意',type:'string',width:110,align:'left'}]);
            const detail = ref({
                cnName: "#detailCnName",
                table: "#detailTable",
                columns: [],
                sortName: "",
                key: ""
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
